import {ReactNode} from "react";
import "./index.scss"
import React from "react";

type  inputIconProps = {
    Icon?: ReactNode;
} & React.InputHTMLAttributes<HTMLInputElement>

export default function inputIcon({Icon, ...props}: inputIconProps) {
    return (
        <div className="inputIcon">
            {Icon}
            <input {...props}/>
        </div>
    )
}